package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.example.fw.Contact;

public class TestContactRemoval extends TestBase {
	
	@Test
	public void shouldDeletFirstContact() {
		Contact frstContactOld = app.getContactHelper().getFirstContact();
		app.getContactHelper().deleteFirstContact();
		if (app.getContactHelper().checkContactListEmpty() != true) {
			Contact frstContactNew = app.getContactHelper().getFirstContact();
			Assert.assertNotEquals(frstContactNew, frstContactOld);
		}
		
	}

}
